#include<stdio.h>

int main(void)
{
	unsigned int a = 0x12345678;  // 大端  ----》小端格式
	unsigned char *p = (char *)&a;
	printf("%x\n",*p);//  78  客户机是小端存储    //12 客户机是大端存储
	if(*p == 0x78)
	{
		printf("小端字节序\n");
	}
	else
	{
		printf("大端字节序\n");
	}
	return 0;
}
